# -*- coding: utf-8 -*-
# @Time    : 2021/11/8 21:28
# @Author  : YIGE
# @Email   : yige@maqu.com
# @File    : celery_main.py
# @Software: PyCharm
from celery import Celery

import os

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'system.settings')

# 创建Celery应用
app = Celery('system')

# 导入Celery配置
app.config_from_object('celery_tasks.celery_config')

# 导入任务
app.autodiscover_tasks(['celery_tasks.email', ])
